<?php if ($module->showtitle) { ?>
<h2><?php echo $module->title; ?></h2>
<?php } ?>
<div class="products latest_products">
<div class="foo2">
<?php foreach($list as $curr){ ?>
    <div class="item new block_item">
        <?php if ($show_image) { ?>
        <div class="framee">
	    <?php if ($curr->label_id){?>
						    <div class="product_label">
							<?php if ($curr->_label_image){?>
							    <img src="<?php print $curr->_label_image?>" alt="<?php print htmlspecialchars($curr->_label_name)?>" />
							<?php }else{?>
							    <span class="label_name"><?php print $curr->_label_name;?></span>
							<?php }?>
						    </div>
						<?php }?>
            <a href="<?php print $curr->product_link?>">               
                <img src = "<?php print $jshopConfig->image_product_live_path?>/<?php if ($curr->product_thumb_image) print $curr->product_thumb_image; else print $noimage?>" alt="" />
            </a>
        </div>
        <?php } ?>
		<div class="pa10">
			<p class="title">
				<a href="<?php print $curr->product_link?>"><?php print $curr->name?></a>
			</p>
			<?php if ($curr->_display_price){?>
			<p class="price">
			   <?php print formatprice($curr->product_price);?>
			</p>
			<?php }?>
			<a href="<?php print $curr->product_link?>" class="btnDetail">Xem chi ti?t</a>
		</div>
    </div>       
<?php } ?>
</div>
				<!--<a id="prev2" class="prev" href="#">&lt;</a>
				<a id="next2" class="next" href="#">&gt;</a>-->
				<div class="pager pager2"></div>
</div>